import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:potato_music_app/pages/login/music_login_page.dart';
import 'package:potato_music_app/router/route_handles.dart';

class Routes {
  static String root = '/splash';
  static String tabbar = '/tabbar';
  static String login = '/login';
  static String musicList = '/user';

  static void configureRoutes(Router router) {
    router.notFoundHandler = new Handler(
      handlerFunc: (BuildContext context, Map<String, List<String>> params) {
        print('route not found');
        return MusicLoginPage();
      }
    );
    router.define(root, handler: splashHandler);
    router.define(tabbar, handler: tabbarHandler);
    router.define(login, handler: loginHandler);
    router.define(musicList, handler: musicListHandler);
  }
}